<template>
  <a-modal :visible="true" title="查看图片" @cancel='handleCancel' :footer="null" :width=800>
    <img :src="src" style="width:100%">
  </a-modal>
</template>

<script>
export default {
  props: ['src'],
  methods: {
    handleCancel (e) {
      this.$emit('clear-src')
    }
  }
}
</script>

<style lang="less" scoped>

</style>
